// 引用网络请求中间件
import request from '@/utils/request';

/**
 *    添加收藏夹
 */
export function CreateFavorite(data) {
	return request({
		url: 'favorites',
		method: 'POST',
		data
	})
}
/**
 *    删除收藏夹
 */
export function DeleteFavorite(data) {
	return request({
		url: 'favorites/'+data.id,
		method: 'DELETE',
	})
}

/**
 *    删除收藏夹
 */
export function ListFavorite(data) {
	return request({
		url: 'favorites',
		method: 'GET',
	})
}

